package log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.lang.invoke.MethodHandles;

public class A {

    /** 日志输出对象. **/
    protected final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

    //Logger lgr = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

    public void testLogOutput(){
        logger.info("这是一个A的测试");
    }

    public static void main(String[] args) {
        A a = new A();
        B b = new B();
        C c = new C();
        a.testLogOutput();
        b.testLogOutput();
        c.testLogOutput();
    }

}
